package com.hxd.mall.module.product.home.bean

import com.hxd.mall.module.school.bean.ItemResource
import com.hxd.mall.network.base.BaseBean
import com.hxd.mall.network.base.BaseSerializable

class HomeBean : BaseBean() {

    /**
     * code : 0
     * data : {"bannerLayout":{"enabled":true,"resources":[{"entryUri":"string","no":"string","pictUri":"string","seq":0,"title":"string"}],"seq":0,"title":"string"},"bulletinLayout":{"enabled":true,"resources":[{"content":"string","entryUri":"string","no":"string","pictUri":"string","seq":0,"title":"string"}],"seq":0,"title":"string"},"campaignLayout":{"enabled":true,"resources":[{"entryUri":"string","no":"string","pictUri":"string","seq":0,"title":"string"}],"seq":0,"title":"string"},"channelLayout":{"enabled":true,"resources":[{"entryUri":"string","no":"string","pictUri":"string","seq":0,"title":"string"}],"seq":0,"title":"string"},"searchLayout":{"enabled":true,"resources":[{"no":"string","seq":0,"title":"string"}],"seq":0,"title":"string"}}
     * msg : string
     * procEndTime : 0
     * procStartTime : 0
     */

    var data: DataBean? = null
    var procEndTime: String? = null
    var procStartTime: String? = null

    class DataBean : BaseBean() {
        /**
         * bannerLayout : {"enabled":true,"resources":[{"entryUri":"string","no":"string","pictUri":"string","seq":0,"title":"string"}],"seq":0,"title":"string"}
         * bulletinLayout : {"enabled":true,"resources":[{"content":"string","entryUri":"string","no":"string","pictUri":"string","seq":0,"title":"string"}],"seq":0,"title":"string"}
         * campaignLayout : {"enabled":true,"resources":[{"entryUri":"string","no":"string","pictUri":"string","seq":0,"title":"string"}],"seq":0,"title":"string"}
         * channelLayout : {"enabled":true,"resources":[{"entryUri":"string","no":"string","pictUri":"string","seq":0,"title":"string"}],"seq":0,"title":"string"}
         * searchLayout : {"enabled":true,"resources":[{"no":"string","seq":0,"title":"string"}],"seq":0,"title":"string"}
         */

        var bannerLayout: BannerLayoutBean? = null
        var bulletinLayout: BulletinLayoutBean? = null
        var campaignLayout: CampaignLayoutBean? = null
        var channelLayout: ChannelLayoutBean? = null
        var searchLayout: SearchLayoutBean? = null
        var userSession: UserSessionBean? = null

        class BannerLayoutBean : BaseBean() {
            /**
             * enabled : true
             * resources : [{"entryUri":"string","no":"string","pictUri":"string","seq":0,"title":"string"}]
             * seq : 0
             * title : string
             */

            var isEnabled: Boolean = false
            var seq: Int = 0
            var title: String? = null
            var resources: MutableList<ItemResource>? = null
        }

        class BulletinLayoutBean : BaseBean() {
            /**
             * enabled : true
             * resources : [{"content":"string","entryUri":"string","no":"string","pictUri":"string","seq":0,"title":"string"}]
             * seq : 0
             * title : string
             */

            var isEnabled: Boolean = false
            var seq: Int = 0
            var title: String? = null
            var resources: List<ItemResource>? = null
        }

        class CampaignLayoutBean : BaseBean() {
            /**
             * enabled : true
             * resources : [{"entryUri":"string","no":"string","pictUri":"string","seq":0,"title":"string"}]
             * seq : 0
             * title : string
             */

            var isEnabled: Boolean = false
            var seq: Int = 0
            var title: String? = null
            var resources: List<ItemResource>? = null
        }

        class ChannelLayoutBean : BaseBean() {
            /**
             * enabled : true
             * resources : [{"entryUri":"string","no":"string","pictUri":"string","seq":0,"title":"string"}]
             * seq : 0
             * title : string
             */

            var isEnabled: Boolean = false
            var seq: Int = 0
            var title: String? = null
            var resources: List<ItemResource>? = null
        }

        class SearchLayoutBean : BaseBean() {
            /**
             * enabled : true
             * resources : [{"no":"string","seq":0,"title":"string"}]
             * seq : 0
             * title : string
             */

            var isEnabled: Boolean = false
            var seq: Int = 0
            var title: String? = null
            var resources: List<ItemResource>? = null
        }

        class UserSessionBean : BaseSerializable() {
            /**
             * "isLogin": true,--是否登录
             * "isTbAuthed": true --是否授权
             * "isPrivacy": true --显示协议标示字段
             */
            var isLogin: Boolean = false
            var isTbAuthed: Boolean = false
            var isPrivacy: Boolean = false

        }
    }
}
